package chapter13.Z8;

import java.util.Scanner;

public class Str8 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String a = sc.next();
        String x = a.replaceAll("[^\\u4e00-\\u9fa5]", "");
        System.out.println(x);
    }
}
